Optimal. Leaf size=99 \[ \frac{a (A+B) \cos (e+f x)}{f \sqrt{a \sin (e+f x)+a} (c-c \sin (e+f x))^{3/2}}+\frac{a B \cos (e+f x) \log (1-\sin (e+f x))}{c f \sqrt{a \sin (e+f x)+a} \sqrt{c-c \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.357862, antiderivative size = 99, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 40, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {2971, 2737, 2667, 31, 2738} \[ \frac{a (A+B) \cos (e+f x)}{f \sqrt{a \sin (e+f x)+a} (c-c \sin (e+f x))^{3/2}}+\frac{a B \cos (e+f x) \log (1-\sin (e+f x))}{c f \sqrt{a \sin (e+f x)+a} \sqrt{c-c \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2971
Rule 2737
Rule 2667
Rule 31
Rule 2738
Rubi steps
\begin{align*} \int \frac{\sqrt{a+a \sin (e+f x)} (A+B \sin (e+f x))}{(c-c \sin (e+f x))^{3/2}} \, dx &=(A+B) \int \frac{\sqrt{a+a \sin (e+f x)}}{(c-c \sin (e+f x))^{3/2}} \, dx-\frac{B \int \frac{\sqrt{a+a \sin (e+f x)}}{\sqrt{c-c \sin (e+f x)}} \, dx}{c}\\ &=\frac{a (A+B) \cos (e+f x)}{f \sqrt{a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}}-\frac{(a B \cos (e+f x)) \int \frac{\cos (e+f x)}{c-c \sin (e+f x)} \, dx}{\sqrt{a+a \sin (e+f x)} \sqrt{c-c \sin (e+f x)}}\\ &=\frac{a (A+B) \cos (e+f x)}{f \sqrt{a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}}+\frac{(a B \cos (e+f x)) \operatorname{Subst}\left (\int \frac{1}{c+x} \, dx,x,-c \sin (e+f x)\right )}{c f \sqrt{a+a \sin (e+f x)} \sqrt{c-c \sin (e+f x)}}\\ &=\frac{a (A+B) \cos (e+f x)}{f \sqrt{a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}}+\frac{a B \cos (e+f x) \log (1-\sin (e+f x))}{c f \sqrt{a+a \sin (e+f x)} \sqrt{c-c \sin (e+f x)}}\\ \end{align*}
Mathematica [C] time = 1.16847, size = 147, normalized size = 1.48 \[ \frac{\sqrt{a (\sin (e+f x)+1)} \left (\cos \left (\frac{1}{2} (e+f x)\right )-\sin \left (\frac{1}{2} (e+f x)\right )\right ) \left (A+2 B \log \left (i-e^{i (e+f x)}\right )+i B \left (f x+2 i \log \left (i-e^{i (e+f x)}\right )\right ) \sin (e+f x)-i B f x+B\right )}{f (c-c \sin (e+f x))^{3/2} \left (\sin \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{1}{2} (e+f x)\right )\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.351, size = 403, normalized size = 4.1 \begin{align*}{\frac{1}{f \left ( -1+\cos \left ( fx+e \right ) -\sin \left ( fx+e \right ) \right ) } \left ( B \left ( \cos \left ( fx+e \right ) \right ) ^{2}\ln \left ( 2\, \left ( \cos \left ( fx+e \right ) +1 \right ) ^{-1} \right ) -2\,B \left ( \cos \left ( fx+e \right ) \right ) ^{2}\ln \left ( -{\frac{-1+\cos \left ( fx+e \right ) +\sin \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) -B\ln \left ( 2\, \left ( \cos \left ( fx+e \right ) +1 \right ) ^{-1} \right ) \sin \left ( fx+e \right ) \cos \left ( fx+e \right ) +2\,B\ln \left ( -{\frac{-1+\cos \left ( fx+e \right ) +\sin \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) \sin \left ( fx+e \right ) \cos \left ( fx+e \right ) +A \left ( \cos \left ( fx+e \right ) \right ) ^{2}-A\sin \left ( fx+e \right ) \cos \left ( fx+e \right ) +B \left ( \cos \left ( fx+e \right ) \right ) ^{2}-B\sin \left ( fx+e \right ) \cos \left ( fx+e \right ) +B\cos \left ( fx+e \right ) \ln \left ( 2\, \left ( \cos \left ( fx+e \right ) +1 \right ) ^{-1} \right ) -2\,B\cos \left ( fx+e \right ) \ln \left ( -{\frac{-1+\cos \left ( fx+e \right ) +\sin \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) +2\,B\sin \left ( fx+e \right ) \ln \left ( 2\, \left ( \cos \left ( fx+e \right ) +1 \right ) ^{-1} \right ) -4\,B\sin \left ( fx+e \right ) \ln \left ( -{\frac{-1+\cos \left ( fx+e \right ) +\sin \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) +A\sin \left ( fx+e \right ) +B\sin \left ( fx+e \right ) -2\,B\ln \left ( 2\, \left ( \cos \left ( fx+e \right ) +1 \right ) ^{-1} \right ) +4\,B\ln \left ( -{\frac{-1+\cos \left ( fx+e \right ) +\sin \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) -A-B \right ) \sqrt{a \left ( 1+\sin \left ( fx+e \right ) \right ) } \left ( -c \left ( -1+\sin \left ( fx+e \right ) \right ) \right ) ^{-{\frac{3}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B \sin \left (f x + e\right ) + A\right )} \sqrt{a \sin \left (f x + e\right ) + a}}{{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{{\left (B \sin \left (f x + e\right ) + A\right )} \sqrt{a \sin \left (f x + e\right ) + a} \sqrt{-c \sin \left (f x + e\right ) + c}}{c^{2} \cos \left (f x + e\right )^{2} + 2 \, c^{2} \sin \left (f x + e\right ) - 2 \, c^{2}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{a \left (\sin{\left (e + f x \right )} + 1\right )} \left (A + B \sin{\left (e + f x \right )}\right )}{\left (- c \left (\sin{\left (e + f x \right )} - 1\right )\right )^{\frac{3}{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B \sin \left (f x + e\right ) + A\right )} \sqrt{a \sin \left (f x + e\right ) + a}}{{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]